package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.paymentreceipt.PMPaymentReceiptTransferer;
import com.fis.hlo.pm.paymentreceipt.PMPaymentReceiptTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class PaymentReceiptTransfererClient {
	private static final QName SERVICE_NAME = new QName(
			"http://paymentreceipt.pm.hlo.fis.com/",
			"PMPaymentReceiptTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_PAY_RECEIPT_PORT_KEY);

	public static PMPaymentReceiptTransferer getService() throws Exception {
		URL url = new URL(WSDL_URL);
		PMPaymentReceiptTransfererService ss = new PMPaymentReceiptTransfererService(
				url, SERVICE_NAME);
		PMPaymentReceiptTransferer port = ss
				.getPMPaymentReceiptTransfererPort();
		return port;
	}
}
